<div class="page-header">
	<h1 style="display: inline;">
		Change Question Order 
		<small>for <span class="text-info"><?php echo $survey['Survey']['name']; ?></span></small>
	</h1>
</div>

<?php echo $this->Form->create(null, array(/*'class' => 'form-horizontal'*/)); ?>
	<ul class="sortable">
		<?php foreach ($questions as $question): ?>
			<li class="control-group controls">
				<i class="icon icon-move"></i>
				<span class="label label-info"><?php echo $question['Question']['label']; ?></span>
				<?php echo $this->Form->hidden(false, array(
					'name' => 'questions[]',
					'value' => $question['Question']['id'],
				)); ?>
			</li>
		<?php endforeach; ?>
	</ul>
	<br/>
	
	<?php echo $this->TwitterBootstrap->button('<i class="icon-white icon-ok"></i> Save Changes', array('style' => 'success', 'escape' => false)); ?>
<?php echo $this->Form->end(); ?>